﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace WebApplication1.SelfUtils
{
    public class PwdEnAndDe
    {
        public static string Encrypt(string input)//加密
        {
            return Convert.ToBase64String(new UTF8Encoding().GetBytes(input));
        }
        public static string Decrypt(string input)//解密
        {
            return new UTF8Encoding().GetString(Convert.FromBase64String(input));
        }
    }
}